package model;

import execption.IllegalAgeExecption;

public class Person {
    public Person(int age) {
        if(age <= 0 || age > 100){
            throw new IllegalAgeExecption("输入年龄有误");
        }
    }
    public Perosn(int age){
        if(age <= 0 || age > 100){
            throw new IllegalAgeExecption("输入年龄有误");
        }
    }
    public int age;


}
